Move xenbus_suspend outside critical region with
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 29 Sep 2005 16:39:33 +0000 (17:39 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 29 Sep 2005 16:39:33 +0000 (17:39 +0100)
interrupts disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c

index ab8f32e531bc46076027cec3cad98b8444501742..bc596fbe09f7198293a2403b6c9b58d6b4b3579e 100644 (file)
@@ -96,6 +96,8 @@ static int __do_suspend(void *ignore)
        }
 #endif
 
+       xenbus_suspend();
+
        preempt_disable();
 #ifdef CONFIG_SMP
        /* Take all of the other cpus offline.  We need to be careful not
@@ -140,8 +142,6 @@ static int __do_suspend(void *ignore)
        }
 #endif
 
-       xenbus_suspend();
-
        gnttab_suspend();
 
 #ifdef __i386__